<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二手易 - 帮助中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #ff7b54;
            --secondary: #ffb26b;
            --accent: #ffd56b;
            --light: #fff6e9;
            --dark: #333333;
            --gray: #6c757d;
            --light-gray: #f8f9fa;
            --success: #4caf50;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        
        body {
            background-color: #f9f9f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1.5rem 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .logo i {
            font-size: 2.2rem;
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }
        
        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            transition: var(--transition);
            padding: 8px 12px;
            border-radius: 4px;
        }
        
        nav a:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .active {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                         url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-4.0.3') no-repeat center center/cover;
            color: white;
            text-align: center;
            padding: 5rem 1rem;
            margin-bottom: 3rem;
        }
        
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
        }
        
        .search-box {
            max-width: 600px;
            margin: 0 auto;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 15px 20px;
            border-radius: 50px;
            border: none;
            font-size: 1rem;
            box-shadow: var(--shadow);
        }
        
        .search-box button {
            position: absolute;
            right: 5px;
            top: 5px;
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .search-box button:hover {
            background: #e06a45;
        }
        
        /* Categories Section */
        .categories {
            margin: 3rem 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 2.5rem;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.2rem;
            color: var(--dark);
            display: inline-block;
            padding-bottom: 10px;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 2rem;
        }
        
        .category-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 30px 20px;
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }
        
        .category-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .category-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .category-card p {
            color: var(--gray);
            margin-bottom: 20px;
        }
        
        .btn {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 10px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            border: 2px solid var(--primary);
        }
        
        .btn:hover {
            background: transparent;
            color: var(--primary);
        }
        
        /* FAQ Section */
        .faq-section {
            margin: 4rem 0;
        }
        
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .faq-item {
            background: white;
            border-radius: 8px;
            margin-bottom: 15px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .faq-question {
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 1.1rem;
            background: var(--light-gray);
            transition: var(--transition);
        }
        
        .faq-question:hover {
            background: #e9ecef;
        }
        
        .faq-question i {
            transition: var(--transition);
        }
        
        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .faq-answer-content {
            padding: 0 0 20px;
        }
        
        .faq-item.active .faq-answer {
            max-height: 500px;
        }
        
        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }
        
        /* Contact Section */
        .contact-section {
            background: linear-gradient(to right, var(--light), #fef5e7);
            padding: 4rem 0;
            margin: 4rem 0;
            border-radius: 15px;
        }
        
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            align-items: center;
        }
        
        .contact-info {
            flex: 1;
            min-width: 300px;
        }
        
        .contact-info h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        
        .contact-info p {
            margin-bottom: 1.5rem;
            color: var(--gray);
        }
        
        .contact-methods {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .contact-method {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .contact-method i {
            width: 50px;
            height: 50px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--dark);
        }
        
        .contact-form {
            flex: 1;
            min-width: 300px;
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: var(--shadow);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.2);
        }
        
        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: block;
            width: 100%;
        }
        
        .submit-btn:hover {
            background: #e06a45;
        }
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1.5rem;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 2rem;
        }
        
        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 12px;
        }
        
        .footer-column ul li a {
            color: #bbb;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-column ul li a:hover {
            color: var(--accent);
            padding-left: 5px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
            color: #aaa;
            font-size: 0.9rem;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 20px;
            }
            
            nav ul {
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero {
                padding: 3rem 1rem;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .category-card {
                padding: 20px 15px;
            }
        }
    </style>
</head>
<body>
    <!-- Header -->
    

    <!-- Hero Section -->
    <section class="hero">
        <div class="container">
            <h1>帮助中心</h1>
            <p>在这里找到您需要的所有帮助信息。无论是账户问题、交易流程还是支付方式，我们都为您提供详细的解答。</p>
            <div class="search-box">
                <input type="text" placeholder="请输入您的问题关键词...">
                <button><i class="fas fa-search"></i> 搜索</button>
            </div>
        </div>
    </section>

    <!-- Categories Section -->
    <section class="categories">
        <div class="container">
            <div class="section-title">
                <h2>帮助分类</h2>
            </div>
            <div class="categories-grid">
                <div class="category-card">
                    <i class="fas fa-user-circle"></i>
                    <h3>账户管理</h3>
                    <p>注册、登录、安全设置、账户信息修改等相关问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
                
                <div class="category-card">
                    <i class="fas fa-shopping-cart"></i>
                    <h3>买卖流程</h3>
                    <p>商品发布、购买流程、交易规则、订单管理等问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
                
                <div class="category-card">
                    <i class="fas fa-credit-card"></i>
                    <h3>支付方式</h3>
                    <p>支付选项、退款流程、优惠券使用、账单查询等问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
                
                <div class="category-card">
                    <i class="fas fa-truck"></i>
                    <h3>物流配送</h3>
                    <p>运费计算、发货流程、物流跟踪、收货确认等问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
                
                <div class="category-card">
                    <i class="fas fa-shield-alt"></i>
                    <h3>安全保障</h3>
                    <p>交易安全、隐私保护、防诈骗指南、纠纷处理等问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
                
                <div class="category-card">
                    <i class="fas fa-file-invoice-dollar"></i>
                    <h3>费用说明</h3>
                    <p>平台手续费、服务费、退款政策、发票申请等问题</p>
                    <a href="#" class="btn">查看详情</a>
                </div>
            </div>
        </div>
    </section>

    <!-- FAQ Section -->
    <section class="faq-section">
        <div class="container">
            <div class="section-title">
                <h2>常见问题解答</h2>
            </div>
            <div class="faq-container">
                <div class="faq-item active">
                    <div class="faq-question">
                        <span>如何注册二手易账户？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        <div class="faq-answer-content">
                            <p>注册二手易账户非常简单：</p>
                            <ol>
                                <li>点击网站右上角的"注册"按钮</li>
                                <li>输入您的手机号码并获取验证码</li>
                                <li>设置您的登录密码（8-20位，包含字母和数字）</li>
                                <li>阅读并同意用户协议和隐私政策</li>
                                <li>点击"立即注册"完成账户创建</li>
                            </ol>
                            <p>注册成功后，您需要完善个人资料才能发布商品。</p>
                        </div>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">
                        <span>如何发布二手商品？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        <div class="faq-answer-content">
                            <p>发布二手商品的步骤：</p>
                            <ol>
                                <li>登录您的二手易账户</li>
                                <li>点击首页右上角的"发布商品"按钮</li>
                                <li>选择商品分类（电子产品、家居用品、服装等）</li>
                                <li>填写商品基本信息（标题、描述、价格、成色等）</li>
                                <li>上传清晰的商品照片（至少3张）</li>
                                <li>设置物流方式和运费</li>
                                <li>确认信息无误后提交审核</li>
                            </ol>
                            <p>商品审核通常需要1-2小时，审核通过后即可在平台展示。</p>
                        </div>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">
                        <span>交易过程中遇到问题怎么办？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        <div class="faq-answer-content">
                            <p>如果交易过程中遇到任何问题，您可以：</p>
                            <ul>
                                <li><strong>联系卖家/买家：</strong> 在订单详情页通过消息功能直接沟通</li>
                                <li><strong>申请平台介入：</strong> 在交易纠纷无法解决时，可在订单页面申请平台客服介入</li>
                                <li><strong>拨打客服热线：</strong> 400-888-8888（工作日9:00-18:00）</li>
                                <li><strong>在线客服：</strong> 点击网站右下角的在线客服图标获取帮助</li>
                            </ul>
                            <p>平台承诺在收到纠纷申请后24小时内响应，并在7个工作日内给出解决方案。</p>
                        </div>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">
                        <span>如何申请退款？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        <div class="faq-answer-content">
                            <p>申请退款的流程：</p>
                            <ol>
                                <li>登录您的二手易账户，进入"我的订单"</li>
                                <li>找到需要退款的订单，点击"申请退款"</li>
                                <li>选择退款原因并描述详细情况</li>
                                <li>上传相关凭证（如商品问题照片、聊天记录等）</li>
                                <li>提交退款申请</li>
                            </ol>
                            <p>提交申请后：</p>
                            <ul>
                                <li>卖家有48小时处理您的申请</li>
                                <li>若卖家同意，款项将在1-3个工作日内退回</li>
                                <li>若卖家拒绝或未处理，您可以申请平台介入</li>
                                <li>平台客服将在24小时内介入处理</li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">
                        <span>平台收取哪些费用？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        <div class="faq-answer-content">
                            <p>二手易平台的收费规则如下：</p>
                            <ul>
                                <li><strong>买家：</strong> 免费浏览和购买商品，仅需支付商品价格和运费</li>
                                <li><strong>卖家：</strong>
                                    <ul>
                                        <li>商品成交后，平台收取成交金额的5%作为服务费（最低1元）</li>
                                        <li>提现手续费：1元/笔（单笔提现金额≥100元时免手续费）</li>
                                        <li>推广服务：可选增值服务，按点击或曝光收费</li>
                                    </ul>
                                </li>
                            </ul>
                            <p>平台所有费用均在交易详情中清晰展示，无隐藏收费。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Contact Section -->
    <section class="contact-section">
        <div class="container contact-container">
            <div class="contact-info">
                <h2>需要更多帮助？</h2>
                <p>如果您的问题在帮助中心没有找到答案，请随时联系我们的客服团队。我们将在24小时内回复您的咨询。</p>
                
                <div class="contact-methods">
                    <div class="contact-method">
                        <i class="fas fa-phone-alt"></i>
                        <div>
                            <h3>客服电话</h3>
                            <p>400-888-8888（工作日 9:00-18:00）</p>
                        </div>
                    </div>
                    
                    <div class="contact-method">
                        <i class="fas fa-envelope"></i>
                        <div>
                            <h3>客服邮箱</h3>
                            <p>support@ershouyi.com</p>
                        </div>
                    </div>
                    
                    <div class="contact-method">
                        <i class="fab fa-weixin"></i>
                        <div>
                            <h3>微信公众号</h3>
                            <p>搜索"二手易客服"</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="contact-form">
                <h2>在线留言</h2>
                <form>
                    <div class="form-group">
                        <label for="name">您的姓名</label>
                        <input type="text" id="name" placeholder="请输入您的姓名">
                    </div>
                    
                    <div class="form-group">
                        <label for="email">电子邮箱</label>
                        <input type="email" id="email" placeholder="请输入您的邮箱">
                    </div>
                    
                    <div class="form-group">
                        <label for="category">问题分类</label>
                        <select id="category">
                            <option value="">请选择问题分类</option>
                            <option value="account">账户问题</option>
                            <option value="transaction">交易问题</option>
                            <option value="payment">支付问题</option>
                            <option value="shipping">物流问题</option>
                            <option value="other">其他问题</option>
                        </select>
                    </div>
                    
                    <div class="form-group">
                        <label for="message">问题描述</label>
                        <textarea id="message" placeholder="请详细描述您的问题..."></textarea>
                    </div>
                    
                    <button type="submit" class="submit-btn">提交问题</button>
                </form>
            </div>
        </div>
    </section>

    <!-- Footer -->


    <script>

        document.querySelectorAll('.faq-question').forEach(question => {
            question.addEventListener('click', () => {
                const faqItem = question.parentElement;
                faqItem.classList.toggle('active');
            });
        });

        const contactForm = document.querySelector('.contact-form form');
        if (contactForm) {
            contactForm.addEventListener('submit', function(e) {
                e.preventDefault();

                const name = document.getElementById('name').value;
                const email = document.getElementById('email').value;
                const category = document.getElementById('category').value;
                const message = document.getElementById('message').value;

                if (!name || !email || !category || !message) {
                    alert('请填写所有必填字段');
                    return;
                }

                alert('您的问题已提交成功！客服人员将在24小时内回复您。');
                contactForm.reset();
            });
        }

        const searchButton = document.querySelector('.search-box button');
        if (searchButton) {
            searchButton.addEventListener('click', function() {
                const searchInput = document.querySelector('.search-box input');
                const searchTerm = searchInput.value.trim();
                
                if (searchTerm) {
                    alert(`正在搜索: ${searchTerm}\n在实际应用中，这里会执行搜索功能`);

                } else {
                    alert('请输入搜索关键词');
                }
            });
        }
    </script>
</body>
</html>